package com.ruoyi.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.service.mapper.ServiceRoleMapper;
import com.ruoyi.service.domain.ServiceRole;
import com.ruoyi.service.service.IServiceRoleService;

/**
 * 护士角色表Service业务层处理
 * 
 * @author ZDL
 * @date 2024-11-12
 */
@Service
public class ServiceRoleServiceImpl implements IServiceRoleService 
{
    @Autowired
    private ServiceRoleMapper serviceRoleMapper;

    /**
     * 查询护士角色表
     * 
     * @param roleId 护士角色表主键
     * @return 护士角色表
     */
    @Override
    public ServiceRole selectServiceRoleByRoleId(Long roleId)
    {
        return serviceRoleMapper.selectServiceRoleByRoleId(roleId);
    }

    /**
     * 查询护士角色表列表
     * 
     * @param serviceRole 护士角色表
     * @return 护士角色表
     */
    @Override
    public List<ServiceRole> selectServiceRoleList(ServiceRole serviceRole)
    {
        return serviceRoleMapper.selectServiceRoleList(serviceRole);
    }

    /**
     * 新增护士角色表
     * 
     * @param serviceRole 护士角色表
     * @return 结果
     */
    @Override
    public int insertServiceRole(ServiceRole serviceRole)
    {
        return serviceRoleMapper.insertServiceRole(serviceRole);
    }

    /**
     * 修改护士角色表
     * 
     * @param serviceRole 护士角色表
     * @return 结果
     */
    @Override
    public int updateServiceRole(ServiceRole serviceRole)
    {
        return serviceRoleMapper.updateServiceRole(serviceRole);
    }

    /**
     * 批量删除护士角色表
     * 
     * @param roleIds 需要删除的护士角色表主键
     * @return 结果
     */
    @Override
    public int deleteServiceRoleByRoleIds(Long[] roleIds)
    {
        return serviceRoleMapper.deleteServiceRoleByRoleIds(roleIds);
    }

    /**
     * 删除护士角色表信息
     * 
     * @param roleId 护士角色表主键
     * @return 结果
     */
    @Override
    public int deleteServiceRoleByRoleId(Long roleId)
    {
        return serviceRoleMapper.deleteServiceRoleByRoleId(roleId);
    }
}
